projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbb7d1e
)
* eglot.el (eglot-completion-at-point): less chatter.
author
João Távora
<joaotavora@gmail.com>
Fri, 23 Nov 2018 00:11:44 +0000
(
00:11
+0000)
committer
João Távora
<joaotavora@gmail.com>
Fri, 23 Nov 2018 00:11:44 +0000
(
00:11
+0000)
lisp/progmodes/eglot.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/eglot.el
b/lisp/progmodes/eglot.el
index 9ff9cdf6f57ed62f5a962eaceb75611176300f2a..b408e59f25d5996fa7bdf80dae00f2c3dec37031 100644
(file)
--- a/
lisp/progmodes/eglot.el
+++ b/
lisp/progmodes/eglot.el
@@
-1629,7
+1629,8
@@
is not active."
(delete-region beg end)
(goto-char beg)
(funcall (or snippet-fn #'insert) newText)))
- (eglot--apply-text-edits additionalTextEdits))
+ (when (cl-plusp (length additionalTextEdits))
+ (eglot--apply-text-edits additionalTextEdits)))
(snippet-fn
;; A snippet should be inserted, but using plain
;; `insertText'. This requires us to delete the